package replica;

public class AdminSuspendAccountThread implements Runnable {

	private AdminClient adminClient;

	private String adminName;

	private String adminPassword;

	private String adminIPAddress;
	
	private String userNameToSuspend;
	
	private String result;

	public AdminSuspendAccountThread(AdminClient adminClient, String adminName,
			String adminPassword, String adminIPAddress, String userNameToSuspend) {
		this.adminClient = adminClient;
		this.adminName = adminName;
		this.adminPassword = adminPassword;
		this.adminIPAddress = adminIPAddress;
		this.userNameToSuspend = userNameToSuspend;
	}

	@Override
	public void run() {
		result = adminClient.suspendAccount(adminName, adminPassword,adminIPAddress, userNameToSuspend);
	}
	
	public String getResult(){
		return result;
	}

}
